<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>晨明网络</title>
    <link rel="stylesheet" href="{$Assets}layui32/css/layui.css">
    <script type="text/javascript" src="{$Assets}aikenjs/jquery.js"></script>
    <style type="text/css">
#layerDemo:hover button{
  background: #000!important;
}
    </style>
</head>
<body class="layui-layout-body">


<div class="layui-layout layui-layout-admin">
  <div class="layui-logo" style="background: #252d3a;color: #fff;font-size: 18px;">{$website.main_title}</div>  
  <div class="layui-side" style="background: #252d3a;">
    <div class="layui-side-scroll">
      <!-- layui -->
        <ul class="layui-nav layui-nav-tree layui-bg-cyan layui-inline" lay-filter="demo" style="background: #252d3a!important;">
          <li class="layui-nav-item layui-this"><a href="{:url('index/welcome')}" target="right_body">首页</a></li>

          <!--
          <li class="layui-nav-item"><a href="{:url('devicealert/index')}" target="right_body"></a></li>
          -->
    

        <li class="layui-nav-item">
          <a href="javascript:;">产品中心</a>
          <dl class="layui-nav-child">
            {if condition="$power.0 == '1'"}
            <dd><a href="{:url('product/fistpage')}" target="right_body">所有产品</a></dd>
            {/if}
            {if condition="$power.1 == '1'"}
            <dd><a href="{:url('product/column')}" target="right_body">产品栏目</a></dd>
            {/if}
          </dl>
        </li>

        <li class="layui-nav-item">
          <a href="javascript:;">卡卷管理</a>
          <dl class="layui-nav-child">
            {if condition="$power.2 == '1'"}
            <dd><a href="{:url('chit/coupons')}" target="right_body">代金卷</a></dd>
            {/if}
            {if condition="$power.3 == '1'"}
            <dd><a href="{:url('chit/gift')}" target="right_body">礼品卷</a></dd>
            {/if}
          </dl>
        </li>


		<li class="layui-nav-item">
          <a href="javascript:;">积分商城</a>
          <dl class="layui-nav-child">
          {if condition="$power.4 == '1'"}
            <dd><a href="{:url('integral/index')}" target="right_body">积分商品</a></dd>
            {/if}
          </dl>
        </li>

        <li class="layui-nav-item">
          <a href="javascript:;">订单管理</a>
          <dl class="layui-nav-child">
          {if condition="$power.5 == '1'"}
            <dd><a href="{:url('order/index')}" target="right_body">所有订单</a></dd>
            {/if}
            {if condition="$power.6 == '1'"}
            <dd><a href="{:url('order/check')}" target="right_body">订单核销</a></dd>
            {/if}
            {if condition="$power.11 == '1'"}
            <dd><a href="{:url('order/checked')}" target="right_body">已核销订单</a></dd>
            {/if}
          </dl>
        </li>


        <li class="layui-nav-item">
          <a href="javascript:;">会员管理</a>
          <dl class="layui-nav-child">
            {if condition="$power.7 == '1'"}
            <dd><a href="{:url('user/master')}" target="right_body">管理员</a></dd>
            {/if}
            {if condition="$power.8 == '1'"}
            <dd><a href="{:url('user/user')}" target="right_body">会员</a></dd>
            {/if}
            {if condition="$power.9 == '1'"}
            <dd><a href="{:url('user/power')}" target="right_body">权限设置</a></dd>
            {/if}
          </dl>
        </li>
        {if condition="$power.10 == '1'"}
		    <li class="layui-nav-item"><a href="{:url('set/index')}" target="right_body">基础设置</a></li>
        {/if}

        {if condition="$cmuser == 'cmtime'"}
        <li class="layui-nav-item"><a href="{:url('set/ico')}" target="right_body">图标管理</a></li>
        {/if}

        {if condition="$ini == '1'"}
        <li class="layui-nav-item"><a href="{:url('log/index')}" target="right_body">操作日志</a></li>
        {/if}
        </ul>
    </div>
  </div>
  
  <div class="layui-body" style="top: 0px;bottom: 0px;">
    <!--  -->
    <!--
    <div style="height: 50px;line-height: 50px;background: #fff;padding-left: 20px;font-size: 20px;font-family: microsoft yahei;">
          

                <a href="javascript:void(0)" id="layerDemo" style="color: #333;font-family: microsoft yahei;float: right;margin-right: 25px;font-size: 14px;">
                    <button data-method="confirmTrans" class="layui-btn" style="background-color: #009688;">/button>
                </a>
    </div>
    -->
    <div style="width: 100%;height: 100%;overflow: hidden;background: #ecf0f5;">








      <iframe src="{:url('index/welcome')}"  name="right_body" style="border:0px;width: 100%;height: 100%;"></iframe>
    </div>
  </div>
  <!--
  <div class="layui-footer" style="background: #fff;z-index: 99999;">

    ? pairuisoft.com - 
  </div>
  -->
</div>



<!--
  <script>
    /*
     * When the iframe is on a different subdomain, uncomment the following line
     * and change "example.com" to your domain.
     */
    // document.domain = "example.com";
    function setIframeHeight(iframe) {
      if (iframe) {
        var iframeWin = iframe.contentWindow || iframe.contentDocument.parentWindow;
        if (iframeWin.document.body) {
          iframe.height = iframeWin.document.documentElement.scrollHeight || iframeWin.document.body.scrollHeight;
        }
      }
    };

    window.onload = function () {
      setIframeHeight(document.getElementById('external-frame'));
    };
  </script>
-->




<script src="{$Assets}layui32/layui.js"></script>

<script>
layui.use(['element','layedit'], function(){
  var element = layui.element; //hoverelement
  
  //
  element.on('nav(demo)', function(elem){
    //console.log(elem)
    //layer.msg(elem.text());
    //document.getElementById("external-frame").src="http://www.cmtime.cn";
  });
});
</script>


</body>
</html>
